Skip to content

Conversation

@sftse
Copy link
Contributor

@sftse sftse commented Jan 27, 2026

Make more things concrete rather than abstract.

@sftse sftse requested a review from a team as a code owner January 27, 2026 10:53
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Jan 27, 2026
let status = child
.wait()
.expect("failed to wait on \"beforeDevCommand\"");
if !(status.success() || KILL_BEFORE_DEV_FLAG.load(Ordering::Relaxed)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of Ordering::Relaxed is almost always incorrect without use of memory barriers, but most CPUs don't even have real relaxed orderings, so the bug will hardly surface in practice.

@sftse sftse changed the title More refactors, some fixes fix: remove busy-looping Jan 27, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

Package Changes Through c73682b

There are 9 changes which include tauri with minor, @tauri-apps/cli with minor, tauri-cli with minor, tauri-utils with patch, tauri-build with patch, tauri-macos-sign with patch, tauri-bundler with minor, tauri-runtime-wry with minor, tauri-runtime with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 2.8.1 2.8.2
tauri-macos-sign 2.3.2 2.3.3
tauri-bundler 2.7.5 2.8.0
tauri-runtime 2.9.2 2.10.0
tauri-runtime-wry 2.9.3 2.10.0
tauri-codegen 2.5.2 2.5.3
tauri-macros 2.5.2 2.5.3
tauri-plugin 2.5.2 2.5.3
tauri-build 2.5.3 2.5.4
tauri 2.9.5 2.10.0
@tauri-apps/cli 2.9.6 2.10.0
tauri-cli 2.9.6 2.10.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Copy link
Contributor

@Legend-Master Legend-Master left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make this easier for us to look back in history when we squash merge them, I think we should split the PR into 3 different ones:

  1. busy loop fix
  2. get config and os string refactors
  3. remove Interface

@sftse
Copy link
Contributor Author

sftse commented Jan 28, 2026

I'm not opposed to splitting this PR, but it seems a bit synthetic if it's just done to work well with a squash.
While in the middle of a refactor I occasionally find things to fix and splitting this into different PRs can mean a lot of rebasing ceremony to satisfy these constraints.

That said, I'm not familiar with the benefits of squashing, so interested to hear a different take.

@Legend-Master
Copy link
Contributor

Legend-Master commented Jan 28, 2026

First off, we have set to only allow squash merge (could of course make exceptions)

To me with squash merge, we maintain a linear history and can create as many small commits in a PR without having to worry about polluting the main history
Also I like to treat each PR as a separate topic, which is pretty inline with what squash merge does

While in the middle of a refactor I occasionally find things to fix and splitting this into different PRs can mean a lot of rebasing ceremony to satisfy these constraints.

I fully understand this though, I just think there're too much unrelated things to the pull request topic, like the entire busy loop fix is ~10 lines in 8634d96 but the refactor of other things took ~200 lines (very much appreciate the clear commit messages though)

And also in this specific case, the removal of the Interface related change might also need some extra look from other team members since I don't really know the reason why they existed at the first place

@sftse sftse changed the title fix: remove busy-looping refactor tauri-cli Jan 28, 2026
@sftse
Copy link
Contributor Author

sftse commented Jan 28, 2026

Managed to mess up the change file, rerun.

I fully understand this though, I just think there're too much unrelated things to the pull request topic

Yeah, I agree in this specific case, splitting is fairly easy. If I'm already 20 commits in and splitting would be a gnarly rebase, I hope we can be flexible if the need arises :)

Legend-Master
Legend-Master previously approved these changes Jan 28, 2026
Copy link
Contributor

@Legend-Master Legend-Master left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would like to wait a bit for the response and see if we can remove manually_killed_process entirely

@@ -86,7 +81,7 @@ impl DevProcess for DevChild {
}

fn manually_killed_process(&self) -> bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code, it seems like the use for this is removed in #11694 and we should be able to remove this entirely right? cc @FabianLars

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't removed it because I may still need it for an upcoming PR that hasn't been started yet.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code, it seems like the use for this is removed in #11694

Hmm yeah, now that you mention it it's not actually used on mobile, i didn't check that in the linked PR and just left mobile untouched.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't removed it because I may still need it for an upcoming PR that hasn't been started yet.

We can leave it for now then

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
@Legend-Master Legend-Master merged commit e3fdcb5 into tauri-apps:dev Jan 29, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this from 📬Proposal to 🔎 In audit in Roadmap Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 In audit

Development

Successfully merging this pull request may close these issues.

3 participants